-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tencentcloudlogserviceexporter]Fix the specified data reporting area bug, and simplify the configuration #6135
[tencentcloudlogserviceexporter]Fix the specified data reporting area bug, and simplify the configuration #6135
Conversation
After carefully checking the failed test, it seems that it has nothing to do with the PR. /ready-to-merge |
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: ":4317" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't actually need this property, as it will default to this value anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I prefer to declare the port configuration, the user may not know what the default configuration is.
@@ -45,8 +44,8 @@ type logServiceClientImpl struct { | |||
|
|||
// newLogServiceClient Create Log Service client | |||
func newLogServiceClient(config *Config, logger *zap.Logger) (logServiceClient, error) { | |||
if config == nil || config.TCPAddr.Endpoint == "" || config.LogSet == "" || config.Topic == "" { | |||
return nil, errors.New("missing logservice params: TCPAddr, LogSet, Topic") | |||
if config == nil || config.Region == "" || config.LogSet == "" || config.Topic == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please create an issue to move this logic to the Validate
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
LGTM, made a few comments that can be addressed in another PR. |
Description:
Fixing a bug -The specified data reporting area bug, and simplify the configuration.
Link to tracking Issue:
Testing:
Documentation: